package com.yunwushanhe.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 用户和角色关联表(UserRole)表实体类
 *
 * @author 抬头看看天
 * @since 2023-08-27 16:15:59
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
@TableName("sys_user_role")
@ApiModel(value = "UserRole对象",description = "用户和角色关联表")
public class UserRole implements Serializable {

    private static final long serialVersionUID = 970056496719571491L;
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

}

